import React from 'react'
import { Flex } from 'antd-mobile'
import styles from './index.module.scss'
import classNames from 'classnames'
export default function FilterFooter({cancelText,sureText,onCancel,onOk}) {
    return <Flex className={styles.root}>
        <span className={classNames(styles.btn,styles.cancel)} onClick={onCancel}>{cancelText}</span>
        <span className={classNames(styles.btn,styles.ok)} onClick={onOk}>{sureText}</span>
    </Flex>
}

// 设置默认props
FilterFooter.defaultProps = {
    cancelText: "取消",
    sureText: "确定"
}
